Optimal. Leaf size=290 \[ -\frac {2 \sqrt {d+e x} \left (\left (b^2-4 a c\right ) (c d-b e)-c \left (b^2-4 a c\right ) e x\right )}{\left (b^2-4 a c\right ) \left (c d^2-b d e+a e^2\right ) \sqrt {a+b x+c x^2}}-\frac {\sqrt {2} \sqrt {b^2-4 a c} e \sqrt {d+e x} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} E\left (\sin ^{-1}\left (\frac {\sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} e}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{\left (c d^2-b d e+a e^2\right ) \sqrt {\frac {c (d+e x)}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}} \sqrt {a+b x+c x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.13, antiderivative size = 290, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {836, 21, 732,
435} \begin {gather*} -\frac {\sqrt {2} e \sqrt {b^2-4 a c} \sqrt {d+e x} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} E\left (\text {ArcSin}\left (\frac {\sqrt {\frac {b+2 c x+\sqrt {b^2-4 a c}}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} e}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{\sqrt {a+b x+c x^2} \left (a e^2-b d e+c d^2\right ) \sqrt {\frac {c (d+e x)}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}}}-\frac {2 \sqrt {d+e x} \left (\left (b^2-4 a c\right ) (c d-b e)-c e x \left (b^2-4 a c\right )\right )}{\left (b^2-4 a c\right ) \sqrt {a+b x+c x^2} \left (a e^2-b d e+c d^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 435
Rule 732
Rule 836
Rubi steps
\begin {align*} \int \frac {b+2 c x}{\sqrt {d+e x} \left (a+b x+c x^2\right )^{3/2}} \, dx &=-\frac {2 \sqrt {d+e x} \left (\left (b^2-4 a c\right ) (c d-b e)-c \left (b^2-4 a c\right ) e x\right )}{\left (b^2-4 a c\right ) \left (c d^2-b d e+a e^2\right ) \sqrt {a+b x+c x^2}}-\frac {2 \int \frac {\frac {1}{2} c \left (b^2-4 a c\right ) d e+\frac {1}{2} c \left (b^2-4 a c\right ) e^2 x}{\sqrt {d+e x} \sqrt {a+b x+c x^2}} \, dx}{\left (b^2-4 a c\right ) \left (c d^2-b d e+a e^2\right )}\\ &=-\frac {2 \sqrt {d+e x} \left (\left (b^2-4 a c\right ) (c d-b e)-c \left (b^2-4 a c\right ) e x\right )}{\left (b^2-4 a c\right ) \left (c d^2-b d e+a e^2\right ) \sqrt {a+b x+c x^2}}-\frac {(c e) \int \frac {\sqrt {d+e x}}{\sqrt {a+b x+c x^2}} \, dx}{c d^2-b d e+a e^2}\\ &=-\frac {2 \sqrt {d+e x} \left (\left (b^2-4 a c\right ) (c d-b e)-c \left (b^2-4 a c\right ) e x\right )}{\left (b^2-4 a c\right ) \left (c d^2-b d e+a e^2\right ) \sqrt {a+b x+c x^2}}-\frac {\left (\sqrt {2} \sqrt {b^2-4 a c} e \sqrt {d+e x} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}}\right ) \text {Subst}\left (\int \frac {\sqrt {1+\frac {2 \sqrt {b^2-4 a c} e x^2}{2 c d-b e-\sqrt {b^2-4 a c} e}}}{\sqrt {1-x^2}} \, dx,x,\frac {\sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )}{\left (c d^2-b d e+a e^2\right ) \sqrt {\frac {c (d+e x)}{2 c d-b e-\sqrt {b^2-4 a c} e}} \sqrt {a+b x+c x^2}}\\ &=-\frac {2 \sqrt {d+e x} \left (\left (b^2-4 a c\right ) (c d-b e)-c \left (b^2-4 a c\right ) e x\right )}{\left (b^2-4 a c\right ) \left (c d^2-b d e+a e^2\right ) \sqrt {a+b x+c x^2}}-\frac {\sqrt {2} \sqrt {b^2-4 a c} e \sqrt {d+e x} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} E\left (\sin ^{-1}\left (\frac {\sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} e}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{\left (c d^2-b d e+a e^2\right ) \sqrt {\frac {c (d+e x)}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}} \sqrt {a+b x+c x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 10.78, size = 405, normalized size = 1.40 \begin {gather*} \frac {4 \sqrt {d+e x} (-c d+b e+c e x)-\frac {i \sqrt {2} \left (2 c d+\left (-b+\sqrt {b^2-4 a c}\right ) e\right ) \sqrt {\frac {e \left (b+\sqrt {b^2-4 a c}+2 c x\right )}{-2 c d+\left (b+\sqrt {b^2-4 a c}\right ) e}} \sqrt {1-\frac {2 c (d+e x)}{2 c d+\left (-b+\sqrt {b^2-4 a c}\right ) e}} \left (E\left (i \sinh ^{-1}\left (\sqrt {2} \sqrt {\frac {c}{-2 c d+\left (b+\sqrt {b^2-4 a c}\right ) e}} \sqrt {d+e x}\right )|\frac {2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}{2 c d+\left (-b+\sqrt {b^2-4 a c}\right ) e}\right )-F\left (i \sinh ^{-1}\left (\sqrt {2} \sqrt {\frac {c}{-2 c d+\left (b+\sqrt {b^2-4 a c}\right ) e}} \sqrt {d+e x}\right )|\frac {2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}{2 c d+\left (-b+\sqrt {b^2-4 a c}\right ) e}\right )\right )}{\sqrt {\frac {c}{-2 c d+\left (b+\sqrt {b^2-4 a c}\right ) e}}}}{2 \left (c d^2+e (-b d+a e)\right ) \sqrt {a+x (b+c x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1365\) vs.
\(2(262)=524\).
time = 1.06, size = 1366, normalized size = 4.71 Too large to display
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.92, size = 506, normalized size = 1.74 \begin {gather*} -\frac {2 \, {\left ({\left (2 \, c^{2} d x^{2} + 2 \, b c d x + 2 \, a c d - {\left (b c x^{2} + b^{2} x + a b\right )} e\right )} \sqrt {c} e^{\frac {1}{2}} {\rm weierstrassPInverse}\left (\frac {4 \, {\left (c^{2} d^{2} - b c d e + {\left (b^{2} - 3 \, a c\right )} e^{2}\right )} e^{\left (-2\right )}}{3 \, c^{2}}, -\frac {4 \, {\left (2 \, c^{3} d^{3} - 3 \, b c^{2} d^{2} e - 3 \, {\left (b^{2} c - 6 \, a c^{2}\right )} d e^{2} + {\left (2 \, b^{3} - 9 \, a b c\right )} e^{3}\right )} e^{\left (-3\right )}}{27 \, c^{3}}, \frac {{\left (c d + {\left (3 \, c x + b\right )} e\right )} e^{\left (-1\right )}}{3 \, c}\right ) - 3 \, {\left (c^{2} x^{2} + b c x + a c\right )} \sqrt {c} e^{\frac {3}{2}} {\rm weierstrassZeta}\left (\frac {4 \, {\left (c^{2} d^{2} - b c d e + {\left (b^{2} - 3 \, a c\right )} e^{2}\right )} e^{\left (-2\right )}}{3 \, c^{2}}, -\frac {4 \, {\left (2 \, c^{3} d^{3} - 3 \, b c^{2} d^{2} e - 3 \, {\left (b^{2} c - 6 \, a c^{2}\right )} d e^{2} + {\left (2 \, b^{3} - 9 \, a b c\right )} e^{3}\right )} e^{\left (-3\right )}}{27 \, c^{3}}, {\rm weierstrassPInverse}\left (\frac {4 \, {\left (c^{2} d^{2} - b c d e + {\left (b^{2} - 3 \, a c\right )} e^{2}\right )} e^{\left (-2\right )}}{3 \, c^{2}}, -\frac {4 \, {\left (2 \, c^{3} d^{3} - 3 \, b c^{2} d^{2} e - 3 \, {\left (b^{2} c - 6 \, a c^{2}\right )} d e^{2} + {\left (2 \, b^{3} - 9 \, a b c\right )} e^{3}\right )} e^{\left (-3\right )}}{27 \, c^{3}}, \frac {{\left (c d + {\left (3 \, c x + b\right )} e\right )} e^{\left (-1\right )}}{3 \, c}\right )\right ) + 3 \, {\left (c^{2} d - {\left (c^{2} x + b c\right )} e\right )} \sqrt {c x^{2} + b x + a} \sqrt {x e + d}\right )}}{3 \, {\left (c^{3} d^{2} x^{2} + b c^{2} d^{2} x + a c^{2} d^{2} + {\left (a c^{2} x^{2} + a b c x + a^{2} c\right )} e^{2} - {\left (b c^{2} d x^{2} + b^{2} c d x + a b c d\right )} e\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {b + 2 c x}{\sqrt {d + e x} \left (a + b x + c x^{2}\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {b+2\,c\,x}{\sqrt {d+e\,x}\,{\left (c\,x^2+b\,x+a\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________